package com.xu.mall.base.category.model;

import java.io.Serializable;

import com.xu.mall.base.common.Constants;
import com.xu.mall.base.tree.entity.BaseTreeEntity;

/**
 * 分类维度
 * 
 * 对分类管进行概念划分，一般不参与读写操作。
 * 
 * @version Revision History
 * 
 *          <pre>
 * Author     Version       Date        Changes
 * lunan.xu   1.0           2012-10-21  Created
 * 
 * </pre>
 * @since 1.
 */
public class CategoryDimension extends BaseTreeEntity implements Serializable {
	private static final long serialVersionUID = 3346099944920539609L;

	@Override
	public void setCode(String code) {
		this.code = code.startsWith(Constants.CodePrefix.CategoryDimension) ? code
				: Constants.CodePrefix.CategoryDimension + code;
	}
}
